package com.bufbomb.datastore;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class StoreUser {
    @PrimaryKey
    @Persistent
    private String email;

    @Persistent
    private int maxCount;
    
    @Persistent
    private int maxSize;
    
    public StoreUser(String email, int maxC, int maxS) {
    	this.email = email;
    	this.maxCount = maxC;
    	this.maxSize = maxS;
    }

    // Accessors for the fields.  JDO doesn't use these, but your application does.

    public String getEmail() {
        return this.email;
    }

    public int getMaxCount() {
        return this.maxCount;
    } 
    public void setMaxCount(int maxC){
    	this.maxCount = maxC;
    } 

    public int getMaxSize() {
        return this.maxSize;
    } 
    public void setMaxSize(int maxS) {
    	this.maxSize = maxS;
    } 
}
